package com.project.bean;


import java.util.List;

/**
 * 宿舍实体类
 */
public class RoomBean {
    /**编号*/
    private int id;
    /**房间地址*/
    private String address;
    /**最大容纳人数*/
    private int allNum;
    /**已入住人数*/
    private int inNum = 0;
    /**房间状态*/
    private String state = "正常";
    /**房间类型*/
    private String type;
    /**房间已住学生集合*/
    private List<StudentBean> list;

    public RoomBean() {
    }

    public RoomBean(String address, int allNum, String type) {
        this.address = address;
        this.allNum = allNum;
        this.type = type;
    }

    public List<StudentBean> getList() {
        return list;
    }

    public void setList(List<StudentBean> list) {
        this.list = list;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAllNum() {
        return allNum;
    }

    public void setAllNum(int allNum) {
        this.allNum = allNum;
    }

    public int getInNum() {
        return inNum;
    }

    public void setInNum(int inNum) {
        this.inNum = inNum;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", allNum=" + allNum +
                ", inNum=" + inNum +
                ", state='" + state + '\'' +
                ", type='" + type + '\'' +
                ", list=" + list +
                '}'+"\n";
    }
}
